<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
	<title>首页</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<div id="content">
		<section class="content-header">
			<h1>
				<i class="fa fa-file-image-o"></i> <strong>详细客户</strong>
			</h1>
			<ol class="breadcrumb">
				<li><a href="#"><i class="fa fa-home "></i>Home</a></li>
				<li>详细客户</li>
				<!-- <li class="active">客户信息</li> -->
			</ol>
		</section>
		<!-- Main content -->
		<section class="content">
			<div class="row">
				<div class="box box-info" id="customerEdit">
					<div class="box-header with-border">
						<i class="fa fa-th-list"></i>
						<h4 class="box-title">费用信息</h4>
					</div>
					 <input class="form-control" type="hidden" id="id"
											name="id" th:value="${old.id}"/> 
											<input class="form-control" type="hidden" id="myMoneyTypeId"
											name="myMoneyTypeId" />
					<div class="box-body" >
						<div class="form-horizontal">
							<div class="form-group">
								<label class="col-sm-1 control-label">出差起始日</label>
								<div class="col-sm-3">
								   <div class="col-md-11">
										<input readonly="readonly" class="form-control" th:value="${old.outStartDate}?${#dates.format(old.outStartDate,'yyyy-MM-dd')}:''" type="Date" name="OutStartDate"
											id="OutStartDate" />
									</div>
								</div>
								<label class="col-sm-1 control-label">出差返回日</label>
								<div class="col-sm-3">
								     <div class="col-md-11">
										<input readonly="readonly" class="form-control" th:value="${old.backDate}?${#dates.format(old.backDate,'yyyy-MM-dd')}:''" type="Date" id="BackDate"
											name="BackDate" 
											/>
									  </div>
								</div>
								<label class="col-sm-1 control-label">出差天数</label>
								<div class="col-sm-3">
								  <div class="col-md-11">
								  	<input class="form-control" type="text" name="OutDays"
											id="OutDays" th:value="${old.outDays}" readonly="readonly"
											/>
									
								  </div>
								</div>
								
							</div>
							<div class="form-group">
								<label class="col-sm-1 control-label">申请人</label>
								<div class="col-sm-3">
									<div class="col-md-11">
										<select disabled="disabled" class="form-control" id="ApplyUser"
											name="ApplyUser" style="width: 100%">
											<option></option>
											<option th:each="user:${allSuperiorMen}"
												th:text="${user.empLogin.name}"
												 th:selected="${user.id.equals(old.applyUser)}"></option>
										</select>
									</div>
								</div>
								<label class="col-sm-1 control-label">申请部门</label>
								<div class="col-sm-3">
									<div class="col-md-11">
									<input class="form-control" type="text" name="ApplyDept" th:value="${superior}" readonly="readonly"
											id="ApplyDept" />
									</div>
								</div>
								<label class="col-sm-1 control-label">申请日期</label>
								<div class="col-sm-3">
									<div class="col-md-11">
									 <input  readonly="readonly" class="form-control" type="Date" name="ApplyDate"
											th:value="${#dates.format(applyDate,'yyyy-MM-dd')}" id="ApplyDate" 
											 datatype="*,*1-100,t" nullmsg="请输入申请日期"
											/> 
									</div>
									<div class="col-md-1">
                                        <span style="color:#F00">*</span>
                                    </div>
								</div>
								
							</div>
							<div class="form-group">
								
								<label class="col-sm-1 control-label">事由</label>
								<div class="col-sm-3" style="width: 90%">
									<div class="col-md-11">
									<textarea  readonly="readonly" class="form-control" style="width:100%" id="breakDuty" name="breakDuty"
									 th:text="${useContent}"   rows="2"  datatype="*,*1-1000" nullmsg="请输入事由"></textarea>
									</div>
									<div class="col-md-1">
                                        <span style="color:#F00">*</span>
                                    </div>
								</div>
							</div>
							<div class="form-group">
								
								<label class="col-sm-1 control-label">备注</label>
								<div class="col-sm-3" style="width: 90%">
									<div class="col-md-11">
									<textarea readonly="readonly" class="form-control" style="width:100%" id="memo"
									th:text="${memo}"  name="breakDuty"  rows="2"></textarea>
									</div>
								</div>
							</div>
						</div>
					</div>
					
					<div class="box-header with-border">
						<i class="fa fa-th-list"></i>
						<h4 class="box-title">费用明细信息</h4>
						<!-- <div class="form-inline">
									<button type="button" class="btn btn-info pull-right deleteBtn">删除</button>
									<button type="button" class="btn btn-info pull-right updateBtn">编辑</button>
									<button type="button" class="btn btn-info pull-right addMXBtn">新增</button>
								</div> -->
					</div>
					<!--  -->
					<div class="box-body">
					
						<div class="nav-tabs-custom">
							<div class="tab-content">
								<div class="tab-pane active" id="tab_7">
									<div class="box box-body">
										<table id="keyTable" class="mytable display text-center"
											cellspacing="0" width="100%">
											<thead>
												<tr>
													<th width="7%">序号</th>
													 <th width="10%"><input type="checkbox" id="checkAll"/></th> 
													<th width="10%">种类</th>
													<th width="10%">金额</th>
													 <th width="10%">申请人</th>
													<th width="10%">事由</th>
												</tr>
											</thead>
											<tbody>
													
											</tbody>
										</table>
									</div>
								</div>
								
								
								
								
							</div>
						</div>
					</div>
					</div>
					
			</div>
			<div>
				<a type="button" class="btn pull-right" href="javascript:history.go(-1)">返回</a>
				<!-- <button type="button" class="btn btn-primary pull-right saveMoneyBtn" id="saveMoneyBtn" style="display:block">保存</button> -->
			</div>
		</section>
		<!-- 费用明细新增弹窗开始 -->
    	<div class="modal" id="editReplacementModal">
        <div class="modal-dialog" role="dialog">
        <div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close">
			<span aria-hidden="true">&times;</span>
			</button>
		    <h4 class="modal-title">
				<strong>费用明细信息</strong>
			</h4>
		</div>
		<div class="modal-body">
		<form id="editOneReplacementAtrrForm">
		<input type="hidden" name="replacementId" id="replacementId" />
		<input type="hidden" id="replacementcreateTime" name="replacementcreateTime"/>
		<table class="table table-bordered">
			<tbody>
			<tr class="odd gradeX">
			<td width="15%" align="center" style="vertical-align:middle">种类</td>
			<td width="35%">
			<div class="col-md-11">
			<input class="form-control" type="text" id="kind" name="kind" datatype="*,*1-100,t" nullmsg="请输入备件名称" />
			</div>
			<div class="col-md-1">
			<span style="color:#F00">*</span>
			</div></td>
			<td width="15%" align="center" style="vertical-align:middle">金额</td>
			<td width="35%">
			<div class="col-md-11">
			<input class="form-control" type="text" id="money" name="money" datatype="*,*1-100,t" nullmsg="请输入规格型号" />
			</div>
			<div class="col-md-1">
			<span style="color:#F00">*</span>
			</div></td>
			</tr>
			</tbody>
		</table>
		</form>
		<div class="modal-footer">
		    <button type="button" class="btn btn-primary saveOtherBtn">保存</button>
		    <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>
		</div>
		</div>
		</div>
        </div>
    </div>
		<!-- 费用明细新增弹窗结束 -->
	<script th:src="@{/myMoney/myMoneyAdd.js}"></script> 
	</div>
</body>
</html>